<template>
  <div class="sec-head">
    <h1 :style="'font-size:'+ titleSize">
      <slot name="title"></slot>
    </h1>
    <div class="sec-head-more">
      <slot name="more" v-if="isCustomMore"></slot>
      <a :href="href" v-else>
        更多
        <i :class="'iconfont icon-'+icon"></i>
      </a>
    </div>
  </div>
</template>

<script>
export default {
    name: "SectionHead",
    props: {
        href:{
            type: String,
            default:"javascript:;"
        },
        icon:String,
        isCustomMore:false,
        titleSize:{
            type:String,
            default:""
        }
    }
}
</script>

<style lang="scss" scoped>
.sec-head {
  margin-bottom: 30px;
  height: 32px;
  h1 {
    color: #333;
    font-size: 24px;
    float: left;
    line-height: 100%;
  }
  .sec-head-more {
    float: right;

    a {
      color: #999;
      font-size: 14px;
      line-height: 32px;

      i {
        line-height: 32px;
        font-size: 12px;
        margin-left: 3px;
        color: #c8c8c8;
        float: right;
      }
    }
  }
}
</style>